<?php 
	class Users
	{
		public static function getUser(){
			global $wpdb;
			$prefix = 'timetable_';
			$current_user = wp_get_current_user(); 
			$id = $current_user->data->ID;
			$query_user = "SELECT iduser id, role_name, role_status FROM {$prefix}user, {$prefix}role WHERE wp_user_id = $id AND idrole=role_id";
			$user_res = $wpdb->get_row($query_user, ARRAY_A);
			return $user_res ;
		}
	}
?>